<template>
  <div class="">
    <el-switch
      v-model="value1"
      active-text="开启文字水印"
      inactive-text="关闭文字水印"
    />
    <h4>强水印无法直接删除</h4>
  </div>
</template>

<script>
import { setWaterMark, removeWatermark } from "@/utils/waterMark.js";
import { setStrongWater} from "@/utils/strongWater.js"
export default {
  name: 'MyWaterMark',
  components: {},
  props: {},
  data() {
    return {
      value1: false,
    }
  },
  computed: {},
  watch: {
    value1(val) {
      if (val) {
        console.log(val);
        setWaterMark('有内鬼啊👻👻👻', '终止交易💲💲💲')
      } else {
        removeWatermark()
      }
    },
  },
  created() {},
  mounted() {
    // setWaterMark('有内鬼啊👻👻👻', '终止交易💲💲💲')
    // setStrongWater("此网页水印", "直接删除不掉");
  },
  methods: {},
}
</script>

<style scoped lang="scss">
</style>
